package user;

import book.BookList;
import ioperation.Ioperation;

public abstract class User {
    //用户姓名
    protected String name;
    protected Ioperation ioperation[];
    public User(String name){
        this.name=name;
    }
    public abstract int menu();
    public void doIoperation(int choice, BookList bookList){
        ioperation[choice].work(bookList);
    }
}
